--
-- Author:      name
-- DateTime:    2018-04-26 16:26:31
-- Description: 各种广播，公告推送服务
require "skynet.manager"
local skynet = require "skynet"
local log = require "Log"
local Objects = require "Objects"
local Message = require "bulletin.Message"
local Command = require "bulletin.Command"




g_objects = Objects.new()

local function init()
	local message = Message.new()
	g_objects:add(message)
	local command = Command.new(message)
	g_objects:add(command)
	g_objects:hotfix("bulletin")

	skynet.dispatch("lua", message:dispatch())
end

skynet.start(function()
	init()
	skynet.register "bulletin"
end)